<template>
	<view class="section">
		<StoryItem v-for="(item,index) in sections.stories" :key="item.id" :story="item"/>
		<view class="no-more">没有更多了</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				sections:[]
			};
		},
		onLoad(options) {
			uni.request({
				url:"https://apis.netstart.cn/zhihudaily/section/"+options.id,
				success:(res) =>{
					this.sections=res.data
					
					uni.setNavigationBarTitle({
						title:this.sections.name+"·合集"
					})
				}
			})
		}
	}
</script>

<style lang="less">
.section{
	padding-top: 150rpx;
}
</style>
